<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<title></title>
    <link rel="stylesheet" href="<?php echo STATICURL; ?>css/bootstrap.min.css" />
    <link rel="stylesheet" href="<?php echo STATICURL; ?>css/bootstrap.min.css" />
    <link rel="stylesheet" href="<?php echo STATICURL; ?>css/bootstrap-responsive.min.css" />
    <link rel="stylesheet" href="<?php echo STATICURL; ?>css/colorpicker.css" />
    <link rel="stylesheet" href="<?php echo STATICURL; ?>css/datepicker.css" />
    <link rel="stylesheet" href="<?php echo STATICURL; ?>css/uniform.css" />
    <link rel="stylesheet" href="<?php echo STATICURL; ?>css/select2.css" />
    <link rel="stylesheet" href="<?php echo STATICURL; ?>css/matrix-style.css" />
    <link rel="stylesheet" href="<?php echo STATICURL; ?>css/matrix-media.css" />
    <link rel="stylesheet" href="<?php echo STATICURL; ?>css/bootstrap-wysihtml5.css" />
    <link href="<?php echo STATICURL; ?>font-awesome/css/font-awesome.css" rel="stylesheet" />
    <style>
        .table1 tr td{
            border: #ccc solid 1px;
        }
        .table2 tr td{
            border: none;
        }
    </style>
</head>

<body style="background: #eeeeee;">
    <div class="widget-content" >
        <table class="table table1" style="margin-top: 20px;">
            <tbody>
            <tr>
                <td>手机</td>
                <td><?php echo $userInfo['username']?$userInfo['username']:"--"?></td>
                <td>登录</td>
                <td></td>
            </tr>
            <tr>
                <td>头像</td>
                <td><img src="<?=UPLOADURL.'Avatar/'.$userInfo['avatar']?>" width='50' height="50"></td>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td>姓名</td>
                <td><?php echo $userInfo['name']?$userInfo['name']:"--"?></td>
                <td>昵称</td>
                <td></td>
            </tr>
            <tr>
                <td>注册时间</td>
                <td><?php echo date("Y-m-d h:i",$userInfo['RegisteTime'])?></td>
                <td>最近使用时间</td>
                <td><?= $userInfo['last_use_time']?date("Y-m-d H:i",$userInfo['last_use_time']):"--"?></td>
            </tr>
            <tr>
                <td>性别</td>
                <td><?php if($userInfo['sex'] == 1){echo "男";}else{echo "女";}?></td>
                <td>期望薪资</td>
                <td><?php echo $userInfo['salary']?$userInfo['salary']:"--"?></td>
            </tr>
            <tr>
                <td>公司</td>
                <td><?php echo $userInfo['company']?$userInfo['company']:"--"?></td>
                <td>期望工作地点</td>
                <td><?php echo $userInfo['expectationlocale']?$userInfo['expectationlocale']:"--"?></td>
            </tr>
            <tr>
                <td>行业</td>
                <td><?php echo $userInfo['career']?$userInfo['career']:"--"?></td>
                <td>年龄</td>
                <td><?php echo $userInfo['birthday']?$userInfo['birthday']:"--"?></td>
            </tr>
            <tr>
                <td>职位</td>
                <td><?php echo $userInfo['position']?$userInfo['position']:"--"?></td>
                <td>出生地</td>
                <td><?php echo $userInfo['birthplace']?$userInfo['birthplace']:"--"?></td>
            </tr>
            <tr>
                <td>国家/所在城市</td>
                <td><?php echo $userInfo['country']."|".$userInfo['birthplace']?></td>
                <td>第二故乡</td>
                <td><?php echo $userInfo['secondhome']?$userInfo['secondhome']:"--"?></td>
            </tr>
            <tr>
                <td>帮派号</td>
                <td><?php echo $userInfo['sign']?$userInfo['sign']:"--"?></td>
                <td>牛人</td>
                <td><?php echo $userInfo['niuren']?$userInfo['niuren']:"--"?></td>
            </tr>
            <tr>
                <td>推荐次数</td>
                <td><?php echo $userInfo['meRecommendCnt']?$userInfo['meRecommendCnt']:"--"?></td>
                <td>被推荐次数</td>
                <td><?php echo $userInfo['recommendMeCnt']?$userInfo['recommendMeCnt']:"--"?></td>
            </tr>
            <tr>
                <td>简历完善度</td>
                <td><?php echo $resumeWanshan?>%</td>
                <td>邀请人</td>
                <td></td>
            </tr>
            <tr>
                <td>APP版本号</td>
                <td></td>
                <td></td>
                <td></td>
            </tr>

            </tbody>
        </table>

        <table class="table table2" style="margin-top: 20px;">
            <tbody>
            <tr>
                <td colspan="4" style="background-color: #ccc;">技能标签：</td>
            </tr>
            <tr>
                <td >
                    <?php foreach($tagList as $row):?>
                        <div style="margin-left: 10px;margin-bottom: 10px;;height: 30px;line-height: 30px;float: left">
                         <span style="padding: 5px;border: #ccc solid 1px;"><?php echo $row['tagname']?>&nbsp;<?php echo $row['cnt']?></span>
                         <a class="J_delSkillTag" data_id="<?php echo $row['id']?>" href="javascript:;" style="margin-left:-4px;padding: 5px;border: #ccc solid 1px;">X</a>
                        </div>
                    <?php endforeach;?>
                </td>
            </tr>
            <tr>
                <td colspan="4" style="background-color: #ccc;">教育经历：</td>
            </tr>
            <?php foreach($educationInfo as $row):?>
            <tr>
                <td colspan="4"><?php echo $row['schoolname']?></td>
            </tr>
                <tr>
                    <td  colspan="4"><?php echo $row['profession']?>&nbsp;<?php echo $row['degree']?></td>
                </tr>
                <tr>
                    <td style="border-bottom: 1px dashed #ccc"  colspan="4">获得荣誉：<?php echo $row['achievement']?></td>
                </tr>
            <?php endforeach;?>
            <tr><td></td></tr>
            <tr>
                <td colspan="4" style="background-color: #ccc;">工作经历：</td>
            </tr>
            <?php foreach($businessInfo as $row):?>
                <tr>
                    <td colspan="4"><?php echo $row['cname']?></td>
                </tr>
                <tr>
                    <td  colspan="4"><?php echo $row['career']?>&nbsp;&nbsp;<?php echo $row['position']?>&nbsp;&nbsp;<?php echo date("Y-m-d H",$row['starttime'])?>--<?php echo date("Y-m-d H",$row['endtime'])?></td>
                </tr>
                <tr>
                    <td colspan="4">工作职责和描述：<?php echo $row['description']?></td>
                </tr>
                <tr>
                    <td style="border-bottom: 1px dashed #ccc"  colspan="4">获得荣誉：<?php echo $row['achievement']?></td>
                </tr>
            <?php endforeach;?>
            </tbody>
        </table>
    </div>
</body>
<script src="<?php echo STATICURL; ?>js/jquery.min.js"></script>
<script src="<?php echo STATICURL; ?>js/bootstrap.min.js"></script>
<script src="<?php echo STATICURL; ?>js/matrix.js"></script>
<script src="<?php echo STATICURL; ?>js/jquery.uniform.js"></script>
<script src="<?php echo STATICURL; ?>js/select2.min.js"></script>
<script src="<?php echo STATICURL; ?>js/matrix.form_common.js"></script>
<script src="<?php echo STATICURL; ?>js/bootstrap-wysihtml5.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $(".J_delSkillTag").click(function(){
            var id = $(this).attr("data_id");
            if(confirm("确定要删除吗？")){
                $.post("/luckydog/user/delSkillTag",{"id":id},function(res){
                    if (res) {
                        window.location.reload();
                    } else
                    {
                        alert("失败");
                    }
                });
            }

        });
    });
</script>